package pl.bank.view.beans;

import javax.faces.event.ActionEvent;

import oracle.adf.share.logging.ADFLogger;
import oracle.adf.view.rich.component.rich.layout.RichPanelFormLayout;

import oracle.binding.OperationBinding;

import utils.ADFUtils;

public class RecipientsBean {
    private RichPanelFormLayout inputForm;
    private ADFLogger LOG = ADFLogger.createADFLogger(this.getClass().getName());

    public RecipientsBean() {
    }

    public void deleteRecipient(ActionEvent actionEvent) {
        LOG.entering("RecipientsBean", "deleteRecipient", actionEvent);
        OperationBinding delete = ADFUtils.findOperation("Delete");
        delete.execute();
        ADFUtils.resetEditableValuesInComponent(inputForm);
        LOG.exiting("RecipientsBean", "deleteRecipient");
    }

    public void setInputForm(RichPanelFormLayout inputForm) {
        this.inputForm = inputForm;
    }

    public RichPanelFormLayout getInputForm() {
        return inputForm;
    }
}
